//
//  AnimationTool.m
//  SchoolTimetable
//
//  Created by 梦里都是梦 on 16/1/9.
//  Copyright © 2016年 Yuanlinqian. All rights reserved.
//

#import "AnimationTool.h"

@implementation AnimationTool
+(void)setAnimationWith:(NSString *)type and:(NSString *)subtype andTime:(NSInteger )time with:(UIViewController *)viewController
{
    CATransition *animation = [CATransition animation];
    animation.duration = time;
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
    //    animation.type = @"suckEffect";
    animation.type = type;
    animation.subtype = subtype;
    [viewController.view.window.layer addAnimation:animation forKey:nil];
}
@end
